import Vue from 'vue'
import App from './App'
import store from './store'
import router from './router'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// 引入国际化语言包
import i18n from '@/lang'
Vue.use(ElementUI, {
  // size: Cookies.get('size') || 'medium', // set element-ui default size
  i18n: (key, value) => i18n.t(key, value)
})

import 'normalize.css/normalize.css' // A modern alternative to CSS resets
import '@/styles/index.scss' // global css

import '@/icons' // icon
import '@/permission' // permission control

// 引入echarts
import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts
// 页面常量
import config from '@/utils/config.js'
Vue.prototype.$config = config
// 页面简单方法
// import base from '@/utils/base.js'

Vue.config.productionTip = false // 阻止启动生产消息

new Vue({
  el: '#app',
  router,
  store,
  i18n,
  render: h => h(App)
})
